Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Group mod credits by role instead of bunching them together #706

Merged
merged 6 commits into from
Apr 22, 2024

Conversation

LostLuma
Copy link
Contributor

Resolves #652 by grouping the credits by role names (Fabric mod preview / Quilt mod preview).
This is mostly useful on Quilt as we can actually assign contributor roles, but splits it into Authors and Contributors on Fabric.

I was not sure whether role names should be translatable as there is no standard for their names, so they are just displayed literally.

@LostLuma LostLuma marked this pull request as ready for review April 16, 2024 16:33
@Jab125
Copy link
Contributor

Jab125 commented Apr 18, 2024

It looks kind of wrong for some reason, probably because it's using singular words instead of plural words.

@LostLuma
Copy link
Contributor Author

I don't think it's really wise to automatically add the s since it won't always work. Consider someone using the word Playtesting instead of Playtester for example, or using another language entirely.

@LostLuma LostLuma force-pushed the feature-credit-by-role branch from 5592068 to 8b1937a Compare April 18, 2024 16:24
@LostLuma LostLuma force-pushed the feature-credit-by-role branch from 8b1937a to 135d0e7 Compare April 18, 2024 16:27

// Add an s to the default untranslated string if it ends in r since this
// Fixes common role names people use in English (e.g. Author -> Authors)
var fallback = roleName.endsWith("r") ? roleName + "s" : roleName;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this seems a bit strange but I guess it's fine lol. we can remove if it causes issues

@Prospector Prospector merged commit cf58ff0 into TerraformersMC:1.20.3 Apr 22, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Improved credits list
3 participants